﻿

<div>
    <form name="commandDispatchCreateOrEditForm" role="form" novalidate class="form-validation">
        <div class="modal-header">
            <h4 class="modal-title">
                <span ng-if="vm.commandDispatch.id">编辑信息:{{vm.commandDispatch.name}}</span>
                <span ng-if="!vm.commandDispatch.id">新增信息</span>
            </h4>
        </div>
        <div class="modal-body">



            <div class="form-group form-md-line-input form-md-floating-label no-hint">
                <input type="text" class="form-control" name="Title" ng-class="{'edited':vm.commandDispatch.title}" ng-model="vm.commandDispatch.title" maxlength="100" required />
                <label>@L("Title")</label>
                <span class="help-block">     @L("Title")@L("MustBe_Required")</span>
            </div>

            <div class="form-group form-md-line-input form-md-floating-label no-hint">
                <input type="text" class="form-control" name="HSTUserId" ng-class="{'edited':vm.commandDispatch.hSTUserId}" ng-model="vm.commandDispatch.hSTUserId" maxlength="50" required />
                <label>@L("HSTUserId")</label>
                <span class="help-block">     @L("HSTUserId")@L("MustBe_Required")</span>
            </div>

            <div class="form-group form-md-line-input form-md-floating-label no-hint">
                <input type="text" class="form-control" name="HSTPwd" ng-class="{'edited':vm.commandDispatch.hSTPwd}" ng-model="vm.commandDispatch.hSTPwd" maxlength="50" required />
                <label>@L("HSTPwd")</label>
                <span class="help-block">     @L("HSTPwd")@L("MustBe_Required")</span>
            </div>
            <div class="form-group form-md-line-input form-md-floating-label no-hint">
                <textarea auto-focus class="form-control" ng-class="{'edited':vm.commandDispatch.remarks}" rows="4" ng-model="vm.commandDispatch.remarks"></textarea>
                <label>@L("Remarks")</label>
            </div>




        </div>
        <div class="modal-footer">
            <button ng-disabled="vm.saving" type="button" class="btn btn-default" ng-click="vm.cancel()">@L("Cancel")</button>
            <button type="submit" button-busy="vm.saving" busy-text="@L("SavingWithThreeDot")" class="btn btn-primary blue" ng-click="vm.save()" ng-disabled="commandDispatchCreateOrEditForm.$invalid"><i class="fa fa-save"></i> <span>@L("Save")</span></button>
        </div>
    </form>
</div>